#include "alternatedconstraint.h"

AlternatedConstraint::AlternatedConstraint(Constraint * lconstraint,
										   Constraint * rconstraint)
	: lconstraint_(lconstraint),
	  rconstraint_(rconstraint)
{
}

AlternatedConstraint::~AlternatedConstraint()
{
}

bool AlternatedConstraint::consider(const Schedule& schedule)
{
	return lconstraint_->consider(schedule) || rconstraint_->consider(schedule);
}
